<?php 
	if( $this->error != NULL){ ?>
		<h4 class="alert_success"><?php echo $this->error ?></h4>
    <?php 
	}elseif($this->message != NULL){?>
		<h4 class="alert_success"><?php echo $this->message ?></h4>
<?php }?>
<header>
  <h3>Edit User</h3>
</header>
<?php foreach($this->show_user as $data) {?>
<form name="adduser" method="post" enctype="multipart/form-data">
    <div class="module_content">
        <fieldset>
            <table align="center">
                <tr>
                    <td>
                        Email 
                    </td>
                    <td>
                        <input type="text" disabled="disabled" value="<?php echo $data['email']; ?>" name="email" > 
                    </td>
                </tr>
                <tr>
                    <td>
                        Password 
                    </td>
                    <td>
                        <input type="password" value="<?php echo $data['password']; ?>" name="password" > 
                    </td>
                </tr>
                
                <tr>
                    <td>
                        First Name 
                    </td>
                    <td >
                        <input type="text" value="<?php echo $data['first_name']; ?>" name="firstname" > 
                    </td>
                </tr>
                
                <tr>
                    <td>
                        Last Name 
                    </td>
                    <td>
                        <input type="text" value="<?php echo $data['last_name']; ?>" name="lastname" > 
                    </td>
                </tr>
                <tr>
                    <td>
                        Images  
                    </td>
                    <td>
                        <img style="margin-left:10px" src="<?php echo $this->baseUrl()?>/../images/users/<?php echo $data['image']; ?>" width="180" height="100" name="image" />
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td >
                        <input style="margin-left:10px" type="file" name="image" > 
                    </td>
                </tr>
                <?php foreach($this->show_group as $group){ 
                	if($group['group_id'] == $data['group_id']){ ?>
                     <tr>
                     	<td></td>
                        <td>
                        <strong style="margin-left:10px">Member</strong><input  type="radio" checked="checked" value="2" name="group"/>
                        <strong>Admin</strong><input type="radio" value="6" name="group"/>
                        </td>
                    </tr>
					<?php } ?>
             	<?php } ?>
            </table>
        </fieldset>
    </div>
<footer>
    <div class="submit_link">
        <input type="submit" name="submit" value="Edit User" class="alt_btn">
        <input type="reset" value="Reset">
    </div>
</footer>
</form>
<?php }?>




